package com.wego.upms.service;

import com.alibaba.fastjson.JSONArray;
import com.wego.common.base.BaseService;
import com.wego.upms.model.UpmsUserPermission;
import com.wego.upms.model.UpmsUserPermissionExample;

/**
* UpmsUserPermissionService接口
* Created by Lee on 2018/3/5.
*/
public interface UpmsUserPermissionService extends BaseService<UpmsUserPermission, UpmsUserPermissionExample > {

    /**
     * 用户权限
     * @param datas 权限数据
     * @param id 用户id
     * @return
     */
    int permission ( JSONArray datas, int id );

}